<%@  language="javascript" %>
<!--#include file="Cabecera2.asp" -->

<script type="text/javascript">
  $(document).ready(function()
  {
    $('#form08').validate({
      rules: {
        aperturaId: {
          required: true
        },
        periodo: {
          required: true
        }
      }
    });
  });

  </script>
<%
  qGestion = Session("auth_granted_poa_gestion");
  unidadOrganizacionalId = Session("auth_granted_poa_unidad");
  aperturaId = 0;
  periodo = 0;
  //var aa = ActividadGetEficaciaFisicaAcumulada(27, 12);
  //Response.Write(aa);
  var qGestion = Session("auth_granted_poa_gestion");
  var mesReporte = Session("auth_granted_poa_mes");
  
  if (request.form("Submit").count() == 1)
  {
    periodo = request.form("periodo");
    Response.Redirect("Form05.asp?periodo=" + periodo);
  }

%>
<script type="text/javascript" src="Scripts/jasny-bootstrap.min.js"></script>
<table width="100%" border="0" cellspacing="1" cellpadding="2" align="center">
  <tbody>
    <tr>
    <td class="TituloSeccion" style="text-transform:uppercase">Form 05 por trimestre</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
  	<td align="center">
      <p>Seleccione el periodo.</p>
      <form action="" method="post" id="form08" >
                  <table border="1" cellspacing="0" cellpadding="4" bordercolor="#ACACAC" style="border-collapse:collapse;">
                    <tbody>
                    <tr>
                        <td>Periodo:</td>
                        <td>
                          <select name="periodo">  
<option value="" >-- todos --</option> 
  <option value="1" <%= (periodo == 1) ? " selected='selected' " : "" %> >Trimestre 1</option>
  <option value="2" <%= (periodo == 2) ? " selected='selected' " : "" %> >Trimestre 2</option>
  <option value="3" <%= (periodo == 2) ? " selected='selected' " : "" %> >Trimestre 3</option>
  <option value="4" <%= (periodo == 2) ? " selected='selected' " : "" %> >Trimestre 4</option>
</select>
                        </td>
                    </tr>
                    <tr>
                    	<td>&nbsp;</td>
                    	<td>
                        <input name="Submit" type="Submit" class="BotonNoAsigna" value="Generar Formulario 05">
                    	</td>
                    </tr>
                </tbody></table>
                </form>
      </td>
    </tr>
    </tbody>
  </table>
<!--#include file="Pie2.asp" -->